package com.example.market_management.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.market_management.model.DeliveryAddress;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface deliveryAddressMapper  extends BaseMapper<DeliveryAddress> {

    //将默认地址更新为普通地址
    int  updateAddressType0(Integer userId);
    //将普通地址更新为默认地址
    int updateAddressType1(Integer addressId);
    //更新配送地址
    int  updateAddress(Integer addressId,String  address);
}
